import { request} from '@/utils/request.util';
import type { Response, Res } from '@/types/common';

import type {DispenseListForm,DispenseListResponse,DispenseDetailResponse} from '@/types/pharmacy.ts'

// 药房配药：获取配药单列表
export const getMfrList =  (body:DispenseListForm) => request.get<DispenseListResponse> ("/stock/supply/getMfrList", {
  params: body
});  

//查询配药单详情
export const getExamDetail = (orderId:number) => request.get<DispenseDetailResponse> ("/order/exam/getOrderExamDetail", {
  params: {
    orderId
  }
});

//药房配药：获取患者配药历史
export const getDispenseHistoryList =  (body:DispenseListForm) => request.get<DispenseDetailResponse> ("/order/dispense/getDispenseHistoryList", {
  params: body
});  